 /**
  * @Des:  通过axios-mapper实现对第三方api的调用，最优形式是，冲store中selector获取json。
  * @Date:  2022-03-14 
  * @Author: willing
  */
import HttpClient, { HttpClientConfig } from 'axios-mapper'
const https = (hasToken: Boolean = true) => {
  const config: HttpClientConfig = {
    baseURL: process.env.VUE_APP_BASE_API,
    headers: {
      // token: hasToken ? useStore().state.user.token : ''
    }
  }
  return new HttpClient(config)
}

export default https
